BYO OpenRouter key on review page#13
Open
dangng2004 wants to merge 2 commits into
Open
Conversation
Adds a prominent always-visible section on /review.html where users can paste a personal OpenRouter key. When supplied, the backend uses it for the review and bypasses the shared daily limit, leaving more of the shared budget for less well-resourced users. - New BYO key panel between the help text and the email field, on brand (accent-light bg + accent border) so it reads as a first-class option rather than a hidden tweak. - Password input; key is sent as the `openrouter_api_key` form field and never persisted in the page. - Backend URL auto-detects localhost vs production so the same page works against a local uvicorn (port 8080) during development.
Contributor
Author
Headline now leads with the concrete benefit (review the full paper, not just the first 20 pages) and keeps the "leave more budget for less well-resourced users" framing as the secondary reason. Adds a Length dropdown inside the BYOK box with two options: * 20k tokens (~20 pages) — default * Full paper (up to 100 pages) The selection is sent as the `tier` form field; the backend only honors it when a BYO key is also supplied.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Paired backend PR
Requires the matching backend change to actually consume the key and skip rate-limiting: ChicagoHAI/openaireview-web-backend (WIP PR opened alongside this one).
Test plan